Optimal. Leaf size=501 \[ -\frac{\left (a^2-b^2 x^2\right ) (e+f x)^2 \left (16 a^2 C f^2-b^2 \left (3 C e^2-5 f (4 A f+3 B e)\right )\right )}{60 b^4 f \sqrt{a+b x} \sqrt{a c-b c x}}+\frac{\sqrt{a^2 c-b^2 c x^2} \tan ^{-1}\left (\frac{b \sqrt{c} x}{\sqrt{a^2 c-b^2 c x^2}}\right ) \left (4 A \left (3 a^2 b^2 e f^2+2 b^4 e^3\right )+a^2 \left (3 a^2 f^2 (B f+3 C e)+4 b^2 e^2 (3 B f+C e)\right )\right )}{8 b^5 \sqrt{c} \sqrt{a+b x} \sqrt{a c-b c x}}+\frac{\left (a^2-b^2 x^2\right ) (e+f x)^3 (C e-5 B f)}{20 b^2 f \sqrt{a+b x} \sqrt{a c-b c x}}-\frac{C \left (a^2-b^2 x^2\right ) (e+f x)^4}{5 b^2 f \sqrt{a+b x} \sqrt{a c-b c x}}-\frac{\left (a^2-b^2 x^2\right ) \left (b^2 f x \left (a^2 f^2 (45 B f+71 C e)-2 b^2 e \left (3 C e^2-5 f (10 A f+3 B e)\right )\right )+4 \left (16 a^4 C f^4+4 a^2 b^2 f^2 \left (5 f (A f+3 B e)+13 C e^2\right )+b^4 \left (-e^2\right ) \left (3 C e^2-5 f (16 A f+3 B e)\right )\right )\right )}{120 b^6 f \sqrt{a+b x} \sqrt{a c-b c x}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 2.67029, antiderivative size = 496, normalized size of antiderivative = 0.99, number of steps used = 7, number of rules used = 6, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15 \[ \frac{\left (a^2-b^2 x^2\right ) (e+f x)^2 \left (-\frac{16 a^2 C f^2}{b^2}-5 f (4 A f+3 B e)+3 C e^2\right )}{60 b^2 f \sqrt{a+b x} \sqrt{a c-b c x}}+\frac{\left (a^2-b^2 x^2\right ) (e+f x)^3 (C e-5 B f)}{20 b^2 f \sqrt{a+b x} \sqrt{a c-b c x}}-\frac{C \left (a^2-b^2 x^2\right ) (e+f x)^4}{5 b^2 f \sqrt{a+b x} \sqrt{a c-b c x}}-\frac{\left (a^2-b^2 x^2\right ) \left (b^2 f x \left (a^2 f^2 (45 B f+71 C e)-b^2 \left (6 C e^3-10 e f (10 A f+3 B e)\right )\right )+4 \left (16 a^4 C f^4+4 a^2 b^2 f^2 \left (5 f (A f+3 B e)+13 C e^2\right )+b^4 \left (-e^2\right ) \left (3 C e^2-5 f (16 A f+3 B e)\right )\right )\right )}{120 b^6 f \sqrt{a+b x} \sqrt{a c-b c x}}+\frac{\sqrt{a^2 c-b^2 c x^2} \tan ^{-1}\left (\frac{b \sqrt{c} x}{\sqrt{a^2 c-b^2 c x^2}}\right ) \left (3 a^4 f^2 (B f+3 C e)+4 A \left (3 a^2 b^2 e f^2+2 b^4 e^3\right )+4 a^2 b^2 e^2 (3 B f+C e)\right )}{8 b^5 \sqrt{c} \sqrt{a+b x} \sqrt{a c-b c x}} \]
Antiderivative was successfully verified.
[In] Int[((e + f*x)^3*(A + B*x + C*x^2))/(Sqrt[a + b*x]*Sqrt[a*c - b*c*x]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((f*x+e)**3*(C*x**2+B*x+A)/(b*x+a)**(1/2)/(-b*c*x+a*c)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.901538, size = 289, normalized size = 0.58 \[ \frac{\frac{(b x-a) \sqrt{a+b x} \left (64 a^4 C f^3+a^2 b^2 f \left (5 f (16 A f+48 B e+9 B f x)+C \left (240 e^2+135 e f x+32 f^2 x^2\right )\right )+2 b^4 \left (10 A f \left (18 e^2+9 e f x+2 f^2 x^2\right )+15 B \left (4 e^3+6 e^2 f x+4 e f^2 x^2+f^3 x^3\right )+3 C x \left (10 e^3+20 e^2 f x+15 e f^2 x^2+4 f^3 x^3\right )\right )\right )}{15 b^6}+\frac{\sqrt{a-b x} \tan ^{-1}\left (\frac{b x}{\sqrt{a-b x} \sqrt{a+b x}}\right ) \left (3 a^4 f^2 (B f+3 C e)+4 A \left (3 a^2 b^2 e f^2+2 b^4 e^3\right )+4 a^2 b^2 e^2 (3 B f+C e)\right )}{b^5}}{8 \sqrt{c (a-b x)}} \]
Antiderivative was successfully verified.
[In] Integrate[((e + f*x)^3*(A + B*x + C*x^2))/(Sqrt[a + b*x]*Sqrt[a*c - b*c*x]),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.04, size = 965, normalized size = 1.9 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((f*x+e)^3*(C*x^2+B*x+A)/(b*x+a)^(1/2)/(-b*c*x+a*c)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)*(f*x + e)^3/(sqrt(-b*c*x + a*c)*sqrt(b*x + a)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.288362, size = 1, normalized size = 0. \[ \left [-\frac{2 \,{\left (24 \, C b^{4} f^{3} x^{4} + 120 \, B b^{4} e^{3} + 240 \, B a^{2} b^{2} e f^{2} + 120 \,{\left (2 \, C a^{2} b^{2} + 3 \, A b^{4}\right )} e^{2} f + 16 \,{\left (4 \, C a^{4} + 5 \, A a^{2} b^{2}\right )} f^{3} + 30 \,{\left (3 \, C b^{4} e f^{2} + B b^{4} f^{3}\right )} x^{3} + 8 \,{\left (15 \, C b^{4} e^{2} f + 15 \, B b^{4} e f^{2} +{\left (4 \, C a^{2} b^{2} + 5 \, A b^{4}\right )} f^{3}\right )} x^{2} + 15 \,{\left (4 \, C b^{4} e^{3} + 12 \, B b^{4} e^{2} f + 3 \, B a^{2} b^{2} f^{3} + 3 \,{\left (3 \, C a^{2} b^{2} + 4 \, A b^{4}\right )} e f^{2}\right )} x\right )} \sqrt{-b c x + a c} \sqrt{b x + a} \sqrt{-c} - 15 \,{\left (12 \, B a^{2} b^{3} c e^{2} f + 3 \, B a^{4} b c f^{3} + 4 \,{\left (C a^{2} b^{3} + 2 \, A b^{5}\right )} c e^{3} + 3 \,{\left (3 \, C a^{4} b + 4 \, A a^{2} b^{3}\right )} c e f^{2}\right )} \log \left (2 \, \sqrt{-b c x + a c} \sqrt{b x + a} b x +{\left (2 \, b^{2} x^{2} - a^{2}\right )} \sqrt{-c}\right )}{240 \, b^{6} \sqrt{-c} c}, -\frac{{\left (24 \, C b^{4} f^{3} x^{4} + 120 \, B b^{4} e^{3} + 240 \, B a^{2} b^{2} e f^{2} + 120 \,{\left (2 \, C a^{2} b^{2} + 3 \, A b^{4}\right )} e^{2} f + 16 \,{\left (4 \, C a^{4} + 5 \, A a^{2} b^{2}\right )} f^{3} + 30 \,{\left (3 \, C b^{4} e f^{2} + B b^{4} f^{3}\right )} x^{3} + 8 \,{\left (15 \, C b^{4} e^{2} f + 15 \, B b^{4} e f^{2} +{\left (4 \, C a^{2} b^{2} + 5 \, A b^{4}\right )} f^{3}\right )} x^{2} + 15 \,{\left (4 \, C b^{4} e^{3} + 12 \, B b^{4} e^{2} f + 3 \, B a^{2} b^{2} f^{3} + 3 \,{\left (3 \, C a^{2} b^{2} + 4 \, A b^{4}\right )} e f^{2}\right )} x\right )} \sqrt{-b c x + a c} \sqrt{b x + a} \sqrt{c} - 15 \,{\left (12 \, B a^{2} b^{3} c e^{2} f + 3 \, B a^{4} b c f^{3} + 4 \,{\left (C a^{2} b^{3} + 2 \, A b^{5}\right )} c e^{3} + 3 \,{\left (3 \, C a^{4} b + 4 \, A a^{2} b^{3}\right )} c e f^{2}\right )} \arctan \left (\frac{b \sqrt{c} x}{\sqrt{-b c x + a c} \sqrt{b x + a}}\right )}{120 \, b^{6} c^{\frac{3}{2}}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)*(f*x + e)^3/(sqrt(-b*c*x + a*c)*sqrt(b*x + a)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x+e)**3*(C*x**2+B*x+A)/(b*x+a)**(1/2)/(-b*c*x+a*c)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)*(f*x + e)^3/(sqrt(-b*c*x + a*c)*sqrt(b*x + a)),x, algorithm="giac")
[Out]